from ecdsa import SigningKey

if __name__ == '__main__':
    str="QinHongMing"
    message=str.encode("utf-8")
    print("message:",message)
    sk=SigningKey.generate()
    print("signing key:",sk.to_string())
    vk=sk.get_verifying_key()
    print("verifying key:",vk.to_string())
    signature=sk.sign(message)
    print("signature:",signature)
    print("verifying result:",vk.verify(signature,message))
